/*
 * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
 * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
 */
package com.excesys.exsecs.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author XuYangbo
 */
@Component
public class MqttEntity {

	@Value("${mqtt.username}")
	private String username;

	@Value("${mqtt.password}")
	private String password;

	@Value("${mqtt.url}")
	private String url;

	//@Value("${mqtt.producer.clientId}")
	private String producerClientId;

	@Value("${mqtt.producer.defaultTopic}")
	private String producerDefaultTopic;

	//@Value("${mqtt.consumer.clientId}")
	private String consumerClientId;

	@Value("${mqtt.consumer.defaultTopic}")
	private String consumerDefaultTopic;

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getProducerClientId() {
		return producerClientId;
	}

	public void setProducerClientId(String producerClientId) {
		this.producerClientId = producerClientId;
	}

	public String getProducerDefaultTopic() {
		return producerDefaultTopic;
	}

	public void setProducerDefaultTopic(String producerDefaultTopic) {
		this.producerDefaultTopic = producerDefaultTopic;
	}

	public String getConsumerClientId() {
		return consumerClientId;
	}

	public void setConsumerClientId(String consumerClientId) {
		this.consumerClientId = consumerClientId;
	}

	public String getConsumerDefaultTopic() {
		return consumerDefaultTopic;
	}

	public void setConsumerDefaultTopic(String consumerDefaultTopic) {
		this.consumerDefaultTopic = consumerDefaultTopic;
	}

}
